//
//  AboutUsViewController.m
//  RoadMaintain
//
//  Created by 岳学坤 on 2017/4/26.
//  Copyright © 2017年 岳学坤. All rights reserved.
//

#import "AboutUsViewController.h"

@interface AboutUsViewController ()
@property (nonatomic,strong) UIImageView *logoImageView;
@property (nonatomic,strong) UILabel *appLab;
@property (nonatomic,strong) UILabel *contentLab;
@end

@implementation AboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self resetNav];
    [self setUI];
}

- (void)resetNav{
    [self setTheBackBtn];
    self.myTitle.text = @"关于";
    self.view.backgroundColor = Bai_Color;
    [self.tableView mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_offset(64);
        make.left.mas_offset(0);
        make.height.mas_offset(0);
        make.right.mas_offset(0);
    }];
}
- (void)setUI{
    self.logoImageView  = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"logo_lan"]];
    [self.view addSubview: self.logoImageView];
    [self.logoImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_offset(0);
        if (IsPad) {
                 make.top.mas_offset(124*WidthRate);
        }else{
             make.top.mas_offset(184*WidthRate);
        }
        make.size.mas_equalTo(CGSizeMake(90*WidthRate, 90*WidthRate));
    }];
    
    self.appLab = [[UILabel alloc]init];
    self.appLab.text = @"中咨路面养护决策管理平台PMMS\nPavement Maintenance Decision and Management System";
    self.appLab.textColor = MAIN_Color;
    self.appLab.numberOfLines = 3;
    self.appLab.font = [UIFont systemFontOfSize:16*ZitiRate];
    self.appLab.textAlignment = 1;
    [self.view addSubview:self.appLab];
    [self.appLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_offset(0);
        make.top.equalTo(self.logoImageView.mas_bottom).offset(40*WidthRate);
        make.left.mas_offset(15*WidthRate);
        make.right.mas_offset(-15*WidthRate);
    }];
    
    self.contentLab = [[UILabel alloc]init];
    self.contentLab.text = @"©2016-2017\n中咨公路养护检测技术有限公司&中咨数据有限公司\n版本1.0";
    self.contentLab.numberOfLines = 0;
    self.contentLab.textColor = Gray_Color;
    self.contentLab.font = [UIFont systemFontOfSize:12*ZitiRate];
    self.contentLab.textAlignment = 1;
    [self.view addSubview:self.contentLab];
    [self.contentLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_offset(-30*HeightRate);
        make.left.mas_offset(0);
        make.right.mas_offset(0);
        make.height.mas_equalTo(60*HeightRate);
    }];
    
}


@end
